package com.webchat.pay.controller;

import com.webchat.common.bean.APIPageResponseBean;
import com.webchat.common.bean.APIResponseBean;
import com.webchat.domain.vo.response.UserWalletDetailResponseVO;
import com.webchat.pay.service.PaymentService;
import com.webchat.rmi.pay.PaymentWalletServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;


@RestController
public class PaymentWalletServiceController implements PaymentWalletServiceClient {

    @Autowired
    private PaymentService paymentService;

    @Override
    public APIResponseBean<BigDecimal> getBalance(String userId) {
        return null;
    }

    @Override
    public APIPageResponseBean<UserWalletDetailResponseVO> page(Integer transType, Integer eventType, String userId, Integer pageNo, Integer pageSize) {

        return paymentService.page(transType, eventType, userId, pageNo, pageSize);
    }
}
